import request from '@/utils/request';
/**
 * 新增荣誉资质
 * @param data
 */
export function addApi(data: any) {
  return request({
    url: `/v2/index/award/admin/add.json`,
    method: 'post',
    data
  })
}
/**
 * 更新荣誉资质
 * @param data
 */
export function updateApi(data: any) {
  return request({
    url: `/v2/index/award/admin/update.json`,
    method: 'post',
    data
  })
}
/**
 * 搜索荣誉资质
 * @param data
 */
export function searchApi(data: any) {
  return request({
    url: `/v2/index/award/admin/search.json`,
    method: 'get',
    params: data
  })
}
/**
 * 获取单个荣誉资质
 * @param id
 */
export function getApi(id: any) {
  return request({
    url: `/v2/index/award/admin/get.json?id=${id}`,
    method: 'get',
  })
}
/**
 * 删除荣誉资质
 * @param id
 */
export function deleteApi(id: any) {
  return request({
    url: `/v2/index/award/admin/delete.json?id=${id}`,
    method: 'post',
  })
}